package com.szpx.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * (TbComment)实体类
 *
 * @author wang.xianlin
 * @since 2024-04-07 23:09:27
 */
@Data
@Table(name = "tb_comment")
public class TbComment implements Serializable {
    private static final long serialVersionUID = 942574881037343709L;
    
    private Integer id;
    /**
     * 商品ID
     */
    private Integer godId;
    /**
     * 留言内容
     */
    private String content;
    /**
     * 客户ID
     */
    private Integer userId;
    /**
     * 留言时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
}

